import classNames from 'classnames'

export const DISPLAY_NAME_DRAGGER = 'Dragger'

export interface DraggerProps {
  onFile: (files: FileList) => void
}

// 获取组件配置的class
export const getDraggerClassNames = (
  props: DraggerProps,
  extendClass?: () => Object
) => {
  return classNames('upload-dragger', extendClass && extendClass())
}
